var topToolbar = new Ext.Toolbar({
    dock: 'top',
    id:"topBar",
    ui:"light",
    title:"oObdOo",
    items:[{
            title:"Share",
            id:"share-pix",
            iconCls:"compose",
            iconMask: true,
            cls: "upload",
            handler:function(){
                Ext.redirect("Upload/index");
            }
        },
        { xtype: 'spacer' }, {
           iconCls: 'logout',
           iconMask: true,
           handler: function(){
                Gallery.CommonStore.removeAt(Gallery.CommonStore.findExact("key","uk"));
                Gallery.CommonStore.removeAt(Gallery.CommonStore.findExact("key","lg"));
                Gallery.CommonStore.sync();
                Gallery.viewport.removeDocked([topToolbar]);
                Ext.redirect("Login/index");
           }
        }
    ]
});